package com.czxy.demo01;


import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {SpringConfig.class})
public class Test01 {

    @Resource
    private User user;



    @Test
    public  void  t03(){

       user.count();
    }


    @Test
    public  void  t02(){

        user.sleep();
    }


    @Test
    public  void  t01(){

        user.eat("jojo");
    }

}
